Skip to content

🐛 Don't capture in STATIC_ASSERT macro#294

Closed
elbeno wants to merge 1 commit intointel:mainfrom
elbeno:no-capture-in-static-assert
Closed

🐛 Don't capture in STATIC_ASSERT macro#294
elbeno wants to merge 1 commit intointel:mainfrom
elbeno:no-capture-in-static-assert

Conversation

@elbeno
Copy link
Contributor

@elbeno elbeno commented Oct 29, 2025

Problem;

  • All the arguments to STATIC_ASSERT are constexpr and must not be captured in the STATIC_ASSERT lambda.

Solution:

  • Remove capture clauses.

Problem;
- All the arguments to `STATIC_ASSERT` are `constexpr` and must not be captured
  in the `STATIC_ASSERT` lambda.

Solution:
- Remove capture clauses.
@elbeno elbeno closed this Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant